package cp4.work.data;

public class Cart {
    // 商品编号
    private int id;
    // 购买数量
    private int count;
    // 小计价格
    private double price;

    public Cart(int id, int count, double price) {
        this.id = id;
        this.count = count;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
